package java实验七;
public class 程序四 {

	    public static void main(String[] args) {
	        // 显示创建对象前的数量
	        System.out.println("Before creating objects");
	        System.out.println("The number of Circle objects is " + www.numberOfObjects);

	        // 创建c1
	        www c1 = new www(); // 使用Circle类在列表9-7中的程序
	        // 显示c1之前创建c2
	        System.out.println("\nAfter creating c1");
	        System.out.println("c1: radius (" + c1.radius + ") and number of Circle objects ("+ www.numberOfObjects + ")");

	        // 创建c2
	        www c2 = new www(5); // 使用Circle类在列表9-7中的程序
	        // 更改c1
	        c1.radius = 9;
	        // 显示c1和c2之后创建c2并修改c1
	        System.out.println("\nAfter creating c2 and modifying c1");
	        System.out.println("c1: radius (" + c1.radius + ") and number of Circle objects ("+ www.numberOfObjects + ")");
	        System.out.println("c2: radius (" + c2.radius + ") and number of Circle objects ("+ www.numberOfObjects + ")");
	       
	    }
	}

